<template>
    <div>
        <div class="block">
            <el-carousel height="400px" style="border-radius: 4px;">
                <el-carousel-item v-for="(item,index) in imgShow" :key="index" >
                    <el-image :src="item"></el-image>
                </el-carousel-item>
            </el-carousel>
        </div>
        <Card/>
        <el-divider></el-divider>
        <Lists/>
    </div>
</template>

<script>
import Lists from "@/views/List.vue";
import Card from "@/views/Card.vue";

export default({
    components: {
        Card,
        Lists,
    },
    data(){
        return{
            imgShow:[
                require('../assets/1.webp'),
                require('../assets/2.webp'),
                require('../assets/3.webp'),
                require('../assets/4.png')
            ]
        }
    }
})
</script>

<style scoped lang="less">
.block{
  width: 69%;
  text-align: center;
  float: left;
  margin-right: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n+1) {
  background-color: #d3dce6;
}
.el-dropdown-link {
  cursor: pointer;
  color: #409EFF;
}
</style>